package com.c2c.po.enums.impl;


import com.c2c.po.enums.BaseCodeEnum;

/**
 * 订单状态
 */
public enum OrdersState implements BaseCodeEnum {

    UNDELIVERED(1, "未发货"),
    DELIVERED(2, "已发货"),
    RECEIVED(3, "已接收"),
    CANCEL(4, "取消订单申请中"),
    SUCCESSFULLY_CANCELLED(5, "已取消"),
    FAILED_CANCELLATION(6, "取消失败");

    private int commentsStateId;
    public String commentsState;

    @Override
    public int getCode() {
        return this.commentsStateId;
    }

    @Override
    public String getInstance() {
        return this.commentsState;
    }

    OrdersState(int commentsStateId, String commentsState) {
        this.commentsStateId = commentsStateId;
        this.commentsState = commentsState;
    }

    public int getCommentsStateId() {
        return commentsStateId;
    }

    public void setCommentsStateId(int commentsStateId) {
        this.commentsStateId = commentsStateId;
    }

    public String getCommentsState() {
        return commentsState;
    }

    public void setCommentsState(String commentsState) {
        this.commentsState = commentsState;
    }

    @Override
    public String toString() {
        return "OrdersState{" +
                "commentsStateId=" + commentsStateId +
                ", commentsState='" + commentsState + '\'' +
                '}';
    }
}
